import React from 'react';
import {Route, Router, Switch, Redirect} from 'react-router'
import Layout from './layout.js'

export default ({history, app}) => <Router history={history}>
    <Switch>
        <Route path="/" exact render={() => <Redirect to="/layout"/>}></Route>
        <Route path="/layout" component={Layout}/>
    </Switch>
</Router>